/**
 * \file CReportRequestData.h
 * \author Corentin Le Bail
 * \date 2009-2013
 * \brief Fichier de déclaration de la classe CReportRequestData
 */
//------------------------------------------------------------------------------
#ifndef __CREPORTREQUESTDATA_H__
#define __CREPORTREQUESTDATA_H__
//------------------------------------------------------------------------------
#include <QObject>
#include <QVariant>
#include "CBaseRequestData.h"
#include "CGlobal.h"
//------------------------------------------------------------------------------
class CReportRequestData : public CBaseRequestData {
	Q_OBJECT
	Q_PROPERTY(QString reportName READ getReportName)
	Q_PROPERTY(QString render READ getRender)
	Q_PROPERTY(QString docName READ getDocName)
	Q_PROPERTY(QVariantMap reportParams READ getReportParams)
	public:
		void setReportName(QString reportName) {  this->reportName=reportName; }
		QString getReportName(void) { return reportName; }
		void setRender(QString render) {  this->render=render; }
		QString getRender(void) { return render; }
		void setDocName(QString docName) {  this->docName=docName; }
		QString getDocName(void) { return docName; }
		void addReportParam(QString key, QVariant value) { reportParams.insert(key, value); }
		QVariantMap getReportParams(void) { return reportParams; }
		QString getKey(void) { return reportName+render+docName+QString::number(reportParams.size()); }
	private:
		QString reportName;
		QString render;
		QString docName;
		QVariantMap reportParams;
};
//------------------------------------------------------------------------------
#endif// __CREPORTREQUESTDATA_H__
//------------------------------------------------------------------------------